PowerTCP SSH and SFTP for .NET
StartShell(String,Int32,Int32,Int32,Int32,Byte[]) Method




The TERM environment variable value (e.g., vt100).
Terminal width, characters (e.g., 80).
Terminal height, characters (e.g., 24).
Terminal width, pixels (e.g., 640.)
Terminal height, pixels (e.g., 480).
Encoded terminal modes (may be null).
Starts a shell on the host with the requested attributes.
Syntax
'Declaration
 
Public Overloads Function StartShell( _
   ByVal term As String, _
   ByVal columns As Integer, _
   ByVal rows As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal modes() As Byte _
) As SessionStream
'Usage
 
Dim instance As Ssh
Dim term As String
Dim columns As Integer
Dim rows As Integer
Dim width As Integer
Dim height As Integer
Dim modes() As Byte
Dim value As SessionStream
 
value = instance.StartShell(term, columns, rows, width, height, modes)
public SessionStream StartShell( 
   string term,
   int columns,
   int rows,
   int width,
   int height,
   byte[] modes
)
public: SessionStream* StartShell( 
   string* term,
   int columns,
   int rows,
   int width,
   int height,
   byte[]* modes
) 
public:
SessionStream^ StartShell( 
   String^ term,
   int columns,
   int rows,
   int width,
   int height,
   array<byte>^ modes
) 

Parameters

term
The TERM environment variable value (e.g., vt100).
columns
Terminal width, characters (e.g., 80).
rows
Terminal height, characters (e.g., 24).
width
Terminal width, pixels (e.g., 640.)
height
Terminal height, pixels (e.g., 480).
modes
Encoded terminal modes (may be null).

Return Value

A SessionStream object that may be read from or written to.
Remarks
This method is typically used for interactive on-line terminal emulation applications. Use SessionStream.Read to read data sent by the host. Use SessionStream.Write to send user input to the host.
See Also

Reference

Ssh Class
Ssh Members
Overload List


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic